package com.jqb.webservice.service;
import javax.jws.WebService;
import com.jqb.webservice.vo.User;
//SIB(Service implement Bean) 服务实现的bean
//2
@WebService(endpointInterface="com.jqb.webservice.service.MathService")
public class MathServiceImpl implements MathService {

	@Override
	public int minus(int a, int b) {
		System.out.println("a-b="+(a-b));
		return a-b;
	}

	@Override
	public int add(int a, int b) {
		System.out.println("a+b="+(a+b));
		return a+b;
	}

	@Override
	public User login(String username, String password) {
		User user = new User();
		user.setId(1000);
		user.setName(username);
		user.setPassword(password);
		return user;
	}
}
